home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMScreen.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  198 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMScreen.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMScreen_h__
  6. #define __gen_nsIDOMScreen_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMScreen */
  19. #define NS_IDOMSCREEN_IID_STR "77947960-b4af-11d2-bd93-00805f8ae3f4"
  20.  
  21. #define NS_IDOMSCREEN_IID \
  22.   {0x77947960, 0xb4af, 0x11d2, \
  23.     { 0xbd, 0x93, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMScreen : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSCREEN_IID)
  29.  
  30.   /* readonly attribute long top; */
  31.   NS_IMETHOD GetTop(PRInt32 *aTop) = 0;
  32.  
  33.   /* readonly attribute long left; */
  34.   NS_IMETHOD GetLeft(PRInt32 *aLeft) = 0;
  35.  
  36.   /* readonly attribute long width; */
  37.   NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
  38.  
  39.   /* readonly attribute long height; */
  40.   NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
  41.  
  42.   /* readonly attribute long pixelDepth; */
  43.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) = 0;
  44.  
  45.   /* readonly attribute long colorDepth; */
  46.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) = 0;
  47.  
  48.   /* readonly attribute long availWidth; */
  49.   NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth) = 0;
  50.  
  51.   /* readonly attribute long availHeight; */
  52.   NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight) = 0;
  53.  
  54.   /* readonly attribute long availLeft; */
  55.   NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft) = 0;
  56.  
  57.   /* readonly attribute long availTop; */
  58.   NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop) = 0;
  59.  
  60. };
  61.  
  62. /* Use this macro when declaring classes that implement this interface. */
  63. #define NS_DECL_NSIDOMSCREEN \
  64.   NS_IMETHOD GetTop(PRInt32 *aTop); \
  65.   NS_IMETHOD GetLeft(PRInt32 *aLeft); \
  66.   NS_IMETHOD GetWidth(PRInt32 *aWidth); \
  67.   NS_IMETHOD GetHeight(PRInt32 *aHeight); \
  68.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth); \
  69.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth); \
  70.   NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth); \
  71.   NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight); \
  72.   NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft); \
  73.   NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSIDOMSCREEN(_to) \
  77.   NS_IMETHOD GetTop(PRInt32 *aTop) { return _to GetTop(aTop); } \
  78.   NS_IMETHOD GetLeft(PRInt32 *aLeft) { return _to GetLeft(aLeft); } \
  79.   NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
  80.   NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
  81.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return _to GetPixelDepth(aPixelDepth); } \
  82.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return _to GetColorDepth(aColorDepth); } \
  83.   NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth) { return _to GetAvailWidth(aAvailWidth); } \
  84.   NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight) { return _to GetAvailHeight(aAvailHeight); } \
  85.   NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft) { return _to GetAvailLeft(aAvailLeft); } \
  86.   NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop) { return _to GetAvailTop(aAvailTop); } 
  87.  
  88. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  89. #define NS_FORWARD_SAFE_NSIDOMSCREEN(_to) \
  90.   NS_IMETHOD GetTop(PRInt32 *aTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTop(aTop); } \
  91.   NS_IMETHOD GetLeft(PRInt32 *aLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLeft(aLeft); } \
  92.   NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  93.   NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  94.   NS_IMETHOD GetPixelDepth(PRInt32 *aPixelDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPixelDepth(aPixelDepth); } \
  95.   NS_IMETHOD GetColorDepth(PRInt32 *aColorDepth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorDepth(aColorDepth); } \
  96.   NS_IMETHOD GetAvailWidth(PRInt32 *aAvailWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailWidth(aAvailWidth); } \
  97.   NS_IMETHOD GetAvailHeight(PRInt32 *aAvailHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailHeight(aAvailHeight); } \
  98.   NS_IMETHOD GetAvailLeft(PRInt32 *aAvailLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailLeft(aAvailLeft); } \
  99.   NS_IMETHOD GetAvailTop(PRInt32 *aAvailTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailTop(aAvailTop); } 
  100.  
  101. #if 0
  102. /* Use the code below as a template for the implementation class for this interface. */
  103.  
  104. /* Header file */
  105. class nsDOMScreen : public nsIDOMScreen
  106. {
  107. public:
  108.   NS_DECL_ISUPPORTS
  109.   NS_DECL_NSIDOMSCREEN
  110.  
  111.   nsDOMScreen();
  112.  
  113. private:
  114.   ~nsDOMScreen();
  115.  
  116. protected:
  117.   /* additional members */
  118. };
  119.  
  120. /* Implementation file */
  121. NS_IMPL_ISUPPORTS1(nsDOMScreen, nsIDOMScreen)
  122.  
  123. nsDOMScreen::nsDOMScreen()
  124. {
  125.   /* member initializers and constructor code */
  126. }
  127.  
  128. nsDOMScreen::~nsDOMScreen()
  129. {
  130.   /* destructor code */
  131. }
  132.  
  133. /* readonly attribute long top; */
  134. NS_IMETHODIMP nsDOMScreen::GetTop(PRInt32 *aTop)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* readonly attribute long left; */
  140. NS_IMETHODIMP nsDOMScreen::GetLeft(PRInt32 *aLeft)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* readonly attribute long width; */
  146. NS_IMETHODIMP nsDOMScreen::GetWidth(PRInt32 *aWidth)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* readonly attribute long height; */
  152. NS_IMETHODIMP nsDOMScreen::GetHeight(PRInt32 *aHeight)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* readonly attribute long pixelDepth; */
  158. NS_IMETHODIMP nsDOMScreen::GetPixelDepth(PRInt32 *aPixelDepth)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* readonly attribute long colorDepth; */
  164. NS_IMETHODIMP nsDOMScreen::GetColorDepth(PRInt32 *aColorDepth)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168.  
  169. /* readonly attribute long availWidth; */
  170. NS_IMETHODIMP nsDOMScreen::GetAvailWidth(PRInt32 *aAvailWidth)
  171. {
  172.     return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174.  
  175. /* readonly attribute long availHeight; */
  176. NS_IMETHODIMP nsDOMScreen::GetAvailHeight(PRInt32 *aAvailHeight)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* readonly attribute long availLeft; */
  182. NS_IMETHODIMP nsDOMScreen::GetAvailLeft(PRInt32 *aAvailLeft)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* readonly attribute long availTop; */
  188. NS_IMETHODIMP nsDOMScreen::GetAvailTop(PRInt32 *aAvailTop)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* End of implementation class template. */
  194. #endif
  195.  
  196.  
  197. #endif /* __gen_nsIDOMScreen_h__ */
  198.